package org.example.java.util.concurrency.lock;

public class ListWriter implements Runnable {
  Data myData;

  public ListWriter(Data myData) {
    super();
    this.myData = myData;
  }

  public void run() {
    for (int i = 1; i < 4; i++) {
      myData.add(Thread.currentThread().getName() + "-" + i);
    }
  }
}
